package com.runvp.common.model.vo.order;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.runvp.common.annotation.Excel;
import com.runvp.common.core.domain.BaseEntity;
import com.runvp.common.model.vo.BaseVO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单对象 biz_order
 *
 * @author runvp
 * @date 2022-09-21
 */
@ToString
@Getter
@Setter
public class BizCustomerOrderVO extends BaseVO {


    private static final long serialVersionUID = -531402546119160255L;
    /**
     * 需要转换的字段集合
     */
    public static String CONVERT_COLUMN = "payAmount,amount";

    /** ID */
    private Long id;


    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNo;

    /** 支付交易号 */
    @Excel(name = "支付交易号")
    private String tranNo;


    /** 客户手机号 */
    @Excel(name = "客户手机号")
    private String customerPhone;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private String deviceSn;

    /** 场地名称 */
    @Excel(name = "场地名称")
    private String siteName;

    /** 场地位置 */
    @Excel(name = "场地位置")
    private String sitePosition;

    /** 购买完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date successTime;

    /** 订单金额 */
    @Excel(name = "订单金额/元")
    private BigDecimal amount;
    /** 重量 */
    @Excel(name = "订单重量/g")
    private Long weight;
    /** 支付类型 */
    @Excel(name = "支付类型",dictType = "payChannel")
    private String payType;

    /** 支付金额 */
    @Excel(name = "支付金额/元")
    private BigDecimal payAmount;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;

}
